<template>
  <div class="empty-container">
    <Icon class="iconfont" type="empty" />
    <div class="title">{{ text }}</div>
  </div>
</template>

<script>
import Icon from "@/components/Icon";
export default {
  props: {
    text: {
      type: String,
      required: false,
      default: "无数据",
    },
  },
  components: {
    Icon,
  }
};
</script>

<style lang="less" scoped>
@import "~@/styles/var";
@import "~@/styles/mixin";
.empty-container {
  .p-center();
  color: @gray;
  text-align: center;
  line-height: 1;
  .icon-container {
    font-size: 7em;
  }
  .title {
    margin: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
  }
}
</style>
